Bite 189. Filter a list of names
Login and get codingHere is a Bite to practice the
continueandbreakstatements in Python.Complete
filter_namesthat takes alistof names and returns a filteredlist(or generator) of names using the following conditions:
- names that start with
IGNORE_CHARare ignored,- names that have one or more digits are ignored,
- if a name starts with
QUIT_CHARit inmediately exits the loop, so no more names are added/generated at this point (neither theQUIT_CHARname),- return up till
MAX_NAMESnames max.Good luck and keep calm and code in Python!
393 out of 396 users completed this Bite.
Will you be the 394th person to crack this Bite?
Resolution time: ~35 min. (avg. submissions of 5-240 min.)
Our community rates this Bite 2.14 on a 1-10 difficulty scale.
» You can do it! 😌